package com.etoak.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CartDTO {

    @NotNull(message = "dishesId 不能为空")
    private Integer dishesId;

    @NotBlank(message = "dishesName 不能为空")
    private String dishesName;

    @NotNull(message = "count 不能为空")
    @Min(value=1,message = "count 最小为1")
    @Max(value=10,message = "count 最大为10")
    private Integer count;
}
